package com.team.teamproject.bean;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by Administrator on 2016/11/7.
 */
public interface Rx_rf_Data_HomePage {
    //http://api.liwushuo.com/v2/channels/100/items_v2?limit=20&ad=2&gender=1&offset=0&generation=1
   @GET("channels/100/items_v2?limit=20&ad=2&gender=1&offset=0&generation=1")
    Observable<Data_HomePageBottom> parseJson_HomePapeBottom();
   @GET("hot_words")
    Observable<HotWords> hotWords();
    //攻略
    //http://api.liwushuo.com/v2/search/post?sort=&limit=20&offset=0&keyword=
    @GET("search/post?sort=&limit=20&offset=0")
    Observable<SearchData> searchResult(@Query("keyword") String keyword);
    //单品
    //http://api.liwushuo.com/v2/search/item?sort=&limit=20&offset=0&keyword=
    @GET("search/item?sort=")
    Observable<SearchData> searchResult(@Query("limit" )int limit,
                                        @Query("offset") int offset,
                                        @Query("keyword") String keyword);
}
